/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.tchepannou.rails.engine.impl;

import com.tchepannou.rails.core.api.ContainerContext;
import com.tchepannou.rails.core.api.MailContext;
import java.util.Map;

/**
 *
 * @author herve
 */
public class MailContextImpl
    implements MailContext
{
    //-- Attribute
    private ContainerContext _cc;
    private Map _data;

    //-- Constructor
    public MailContextImpl (ContainerContext cc, Map data)
    {
        _cc = cc;
        _data = data;
    }

    
    //-- MailContext override
    public ContainerContext getContainerContext ()
    {
        return _cc;
    }

    public Map getData ()
    {
        return _data;
    }

}
